package com.hejing.面向对象特征之三_多态.向下转型;

/**
 * ClassName: Woman
 * Package: com.hejing.面向对象特征之三_多态.初识多态
 * Description:
 *
 * @Author: HeJing
 * @Create: 2023-03-26 11:24
 * @Version: 1.0
 */
public class Woman extends Person {
    boolean isBeauty;

    // 方法重写
    public void eat() {
        System.out.println("女人少吃东西，可以减肥...");
    }

    public void walk() {
        System.out.println("女人窈窕的走路...");
    }

    // 特有方法
    public void goShopping() {
        System.out.println("女人喜欢逛街...");
    }
}



















